package com.kronos.game.desktop;

import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import com.kronos.game.KronosGame;

public class DesktopLauncher {
	private final static boolean WINDOW_BORDER = true; 
	private final static boolean FULLSCREEN = true; 
	
	public static void main (String[] arg) {
		LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
		
		config.fullscreen = FULLSCREEN;
		
		config.title = KronosGame.TITLE;
		
		if(config.fullscreen) {
			config.width =  LwjglApplicationConfiguration.getDesktopDisplayMode().width;
			config.height =  LwjglApplicationConfiguration.getDesktopDisplayMode().height;
		} else {
			if (!WINDOW_BORDER) {
			System.setProperty("org.lwjgl.opengl.Window.undecorated", "true");
			}
			config.resizable = false;
			config.width = KronosGame.V_WIDTH;
			config.height = KronosGame.V_HEIGHT;
		}
		
		new LwjglApplication(new KronosGame(), config);
	}
}
